package com.itcanteen.medical.docker.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 段段
 * @PackageName: com.itcanteen.medical.doctor.dto
 * @ClassName: Work
 * @Description:
 * @data: 2020/12/15 15:04
 **/
@Entity
@Table(name = "t_work")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Work implements Serializable {
    @Id
    @Column(name = "id")
    @KeySql(useGeneratedKeys = true)
    private Long id;

    @Column(name = "start_time",nullable = false)
    private Date startTime;

    @Column(name = "end_time",nullable = false)
    private Date endTime;

    @Column(name = "doctor_id",nullable = false)
    private Long doctorId;

    @Column(name = "status",nullable = false)
    private int status;
}
